2fa1caca0cf5dad868870f856c0cadb983709f37,spring-web/src/main/java/org/springframework/web/context/request/ServletWebRequest.java,ServletWebRequest,checkNotModified,#String#number#,278

Before Change


					if (this.notModified && supportsNotModifiedStatus()) {
						response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
					}
					if (response.getHeader(HEADER_ETAG) == null) {
						response.setHeader(HEADER_ETAG, etag);
					}
					if (response.getHeader(HEADER_LAST_MODIFIED) == null) {

After Change



	@Override
	public boolean checkNotModified(String etag, long lastModifiedTimestamp) {
		HttpServletResponse response = getResponse();
		if (StringUtils.hasLength(etag) && !this.notModified) {
			if (isCompatibleWithConditionalRequests(response)) {
				etag = addEtagPadding(etag);
				this.notModified = isEtagNotModified(etag) && isTimestampNotModified(lastModifiedTimestamp);
				if (response != null) {
					if (this.notModified && supportsNotModifiedStatus()) {
						response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
					}
					if (isHeaderAbsent(response, HEADER_ETAG)) {
						response.setHeader(HEADER_ETAG, etag);
					}
					if (isHeaderAbsent(response, HEADER_LAST_MODIFIED)) {